package com.hc.controller;

import com.hc.common.ActionEvent;
import com.hc.constants.Constants;
import com.hc.model.utils.AccountModel;


public class AccountController {
	public static AccountController instance;
	public static AccountController getInstance(){
		if(instance == null)
			instance = new AccountController();
		return instance;
	}
	
	public void handleViewEvent(ActionEvent e) {
		switch (e.action) {
		case Constants.INSERT_ACCOUNT: {
			AccountModel.getInstance().handleControllerEvent(e);
			break;
		}
		
		default:
			break;
		}
	}
}
